<?php
 echo $form->create("Dausach");
 echo $form->input('tensach',array('id'=>'tensach','label'=>'ten sach','type'=>'text'));
?>
 <div>
<?php echo $form->input("tentg",array('id'=>'tentg','label'=>'ten tac gia','type'=>'text')) ?>
<?php echo $form->input("nbx",array('id'=>'nxb','label'=>'nha xuat ban','type'=>'text')) ?>
 </div>
<?php echo $this->Form->end('Tim');?>
    
<table id='tables' width="200" border="0">
<?php $i=1;?>
	<?php if(!empty($kq)){
     foreach($kq as $kqs): ?>  
  
	 <tr>
      <td><?php echo $i ?></td>
      
      <td valign="middle"><?php echo  "<b> ten sach :</b>".$kqs['Dausach']['tensach']."<b> so trang</b> :".$kqs['Dausach']['sotrang']."<b> tac gia</b>: ".$kqs['Dausach']['tacgia']."<b> nam xuat ban:</b> ".$kqs['Dausach']['namxb']?></td>
  
      <td><?php echo $this->Html->link("Chi tiet",array('controller'=>'cuonsaches','action'=>'dscuonsach',$kqs['Dausach']['id']));?></td>

     </tr>
   <?php $i++;?>
    <?php endforeach ?>
    <?php }?>
     </table>   
